import request from '@/utils/request'

// 查询考勤汇总列表
export function listAttendanceSummary(query) {
    return request({
        url: '/quick/attendanceSummary/list',
        method: 'get',
        params: query
    })
}

// 查询考勤汇总详细
export function getAttendanceSummary(id) {
    return request({
        url: '/quick/attendanceSummary/' + id,
        method: 'get'
    })
}

// 新增考勤汇总
export function addAttendanceSummary(data) {
    return request({
        url: '/quick/attendanceSummary',
        method: 'post',
        data: data
    })
}

// 修改考勤汇总
export function updateAttendanceSummary(data) {
    return request({
        url: '/quick/attendanceSummary',
        method: 'put',
        data: data
    })
}

// 删除考勤汇总
export function delAttendanceSummary(id) {
    return request({
        url: '/quick/attendanceSummary/' + id,
        method: 'delete'
    })
}

// 导入考勤汇总
export function importAttendanceSummary(data) {
    return request({
        url: '/quick/attendanceSummary/importData',
        method: 'post',
        data: data
    })
}

// 下载考勤汇总导入模板
export function importAttendanceSummaryTemplate() {
    return request({
        url: '/quick/attendanceSummary/importTemplate',
        method: 'post',
        responseType: 'blob'
    })
}
